export interface ITodo {
  id: number
  completed: boolean
  content: string
}
export interface IState {
  todoList: ITodo[]
}
export enum Act_type {
  ADD_TODO = 'add_todo',
  REMOVE_TODO = 'remove_todo',
  TOGGLE_TODO = 'toggle_todo',
  INIT_DATA = 'init_data',
}

export interface IAct {
  type: Act_type
  payload: number | ITodo | ITodo[]
}
